package com.cp.helper.dao;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/** 
 * 描述: 基础Dao接口
 * @author chenpeng
 * @date 2015-5-5
 */
public interface BaseDao<T extends Serializable>
{ 

	public T selectByKey(Integer paramId) throws Exception;

	public List<T> selectList(Map<String, Object> paramQryMap) throws Exception;

	public Integer selectTotal(Map<String, Object> paramQryMap) throws Exception;

	public Integer insert(T paramObject) throws Exception;

	public List<BigDecimal> insertBatch(List<T> paramObjList) throws Exception;

	public int update(T paramObject) throws Exception;

	public int delete(Integer paramId) throws Exception;

	public int deleteBatch(List<Integer> paramIdList) throws Exception;
}
